//
//  UILabel+ZYAddition.m
//  WeiBo
//
//  Created by gzy on 2017/11/27.
//  Copyright © 2017年 GZY. All rights reserved.
//

#import "UILabel+ZYAddition.h"

@implementation UILabel (ZYAddition)
+ (instancetype)zy_labelWithText:(NSString *)text fontSize:(CGFloat)fontSize color:(UIColor *)color {
    UILabel *label = [[self alloc] init];
    label.text = text;
    label.font = [UIFont systemFontOfSize:fontSize];
    label.textColor = color;
    label.numberOfLines = 0;
    [label sizeToFit];
    
    return label;
}
@end
